
<?php
require_once '../Model/DAL/Connection.php';
require_once '../Model/DAO/Player.php';
$playerID = $_SESSION['agentLog']['PlayerID'];
$pl = new Player();
$pl->setPlayerID($playerID);
$conn = new Connection();
$con = $conn->configDB();
$result = $pl->loadAccountDetail($con);
?>

<div id="topManagement" class="clear">
    <div id="profile" class="box-profile clear right">
        <a href="#" class="username"><?= $LANG["label"]["HELLO"]; ?>: <?= $result['Username'] ?></a>&nbsp;&nbsp;&nbsp;|
        <a class="logoff" href="<?php echo LODE_SERVER; ?>/View/login.php?action=LOGOUTAGENT"><?= $LANG["label"]["LOGOFF"]; ?></a>&nbsp;&nbsp;&nbsp;|
        <i class="thumnail">
            <img src="<?php echo LODE_SERVER; ?>/View/resources/images/icons/profile/default.png">
        </i>
    </div>
</div>